/**
 * Created by Administrator on 2016/6/26.
 */
/**
 * Created by Administrator on 2016/5/30.
 */
'use strict';
swan_pc.config(
    function($stateProvider) {
        $stateProvider
            .state('task', {
                parent: 'site',
                url: '/task',
                data: {
                    pageTitle: 'task'
                },
                views: {
                    'content@': {
                        templateUrl: 'scripts/components/myself/task/task.html',
                        controller: 'TaskController'
                    }
                }
            })
            .state('taskcalshow',{
                parent:'task',
                url:'/taskcalshow',
                views:{
                    "TaskOrInput@task":{
                        templateUrl:"scripts/components/myself/task/taskCalShow/taskCalShow.html",
                        controller:"TaskCalShowController"
                    }
                }
            })
            .state('addtask',{
                parent:'task',
                url:'/addtask',
                views:{
                    "TaskOrInput@task":{
                        templateUrl:"scripts/components/myself/task/addtask/addtask.html",
                        controller:"AddTaskController"
                    }
                }
            })
            .state('taskdetail',{
                parent:'task',
                url:'/taskdetail',
                views:{
                    "TaskOrInput@task":{
                        templateUrl:"scripts/components/myself/task/taskdetailshow/taskdetail.html",
                        controller:"TaskDetailController"
                    }
                }
            })
            .state('tasklist',{
                parent:'task',
                url:'/tasklist',
                views:{
                    "TaskOrInput@task":{
                        templateUrl:"scripts/components/myself/task/tasklistshow/tasklistshow.html",
                        controller:"TaskListController"
                    }
                }
            })
            /*.state('task', {
                parent: 'site',
                url: '/task',
                data: {
                    pageTitle: 'task'
                },
                views: {
                    'content@': {
                        templateUrl: 'scripts/components/myself/task/task2.html',
                        controller: 'TaskJqueryController'
                    }
                }
            })*/
            .state('taskshow',{
                parent:'task',
                url:'/taskshow',
                views:{
                    "TaskOrInput@task":{
                        templateUrl:"scripts/components/myself/task/taskshow/taskshow.html",
                        controller:"TaskShowController"
                    }
                }
            })
            .state("taskjqueryshow",{
                parent:"task",
                url:"/taskjqueryshow",
                views:{
                    "TaskOrInput@task":{
                        templateUrl:"scripts/components/myself/task/taskjqueryshow/taskjqueryshow.html",
                        controller:"TaskJqueryController"
                    }
                }
            })
            .state("taskganttshow",{
                parent:"site",
                url:"/taskganttshow",
                views:{
                    "content@":{
                        templateUrl:"scripts/components/myself/task/task2.html",
                        controller:"TaskGanttController"
                    }
                }
            })
    }

)
